var path = require('path');

module.exports = {
    entry: "./es6/main.js",
    output: {
        path: __dirname,
        filename: "bundle.js"
    },
    mode: 'development',
    module: {
        rules: [
            {
                test: path.join(__dirname, 'es6'),
                loader: 'babel-loader',
                query: {
                    presets: ['es2015']
                }
            }
        ]
    },
    optimization: {
        minimize: false
    },
    devtool: '#source-map',
    devServer: {
        inline: true,
        port: 3333,
        open: true
    },
}
